<h1>Listing guest_names</h1>

<table>
  <thead>
    <tr>
      <th>From user name</th>
      <th>Real name</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @guest_names.each do |guest_name| %>
      <tr>
        <td><%= guest_name.from_user_name %></td>
        <td><%= guest_name.real_name %></td>
        <td><%= link_to 'Show', guest_name %></td>
        <td><%= link_to 'Edit', edit_guest_name_path(guest_name) %></td>
        <td><%= link_to 'Destroy', guest_name, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>
<%= @guest_names_all %>
<%= link_to 'New Guest name', new_guest_name_path %>
